<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/3/16
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="../js/jquery-3.4.1.min.js"></script>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/news.css">
</head>
<script>
    $(function () {
        $("#top").load("top.jsp");
        $("#foot").load("foot.jsp");
        $("#page").load("page.jsp");
    })
</script>
<body>
<jsp:include page="top.jsp"></jsp:include>
<div class="news-banner">
    <div class="news-title">
        <div class="floatLeft">新闻动态
        </div>
        <div class="floatRight">
            <%--            <div>行业动态</div>--%>
            <%--            <div>公司新闻</div>--%>
            <%--            <div>餐饮知识</div>--%>
            <c:forEach items="${newsPlateModelList}" var="model">
                <div>${model.name}</div>
            </c:forEach>
        </div>
    </div>
    <div class="news-content">
        <div class="news-detail">
            <c:forEach items="${newsModelList}" var="model">
                <div class="news-detail-one">
                    <div class="floatLeft"><img src="../img/9_8hh4.jpg" height="15" width="15"/>${model.title}</div>
                    <div class="floatRight">
                        <fmt:parseDate value="${model.create_time}" pattern="yyyy-MM-dd" var="createtime"></fmt:parseDate>
                        <fmt:formatDate value="${createtime}" type="date" dateStyle="default"></fmt:formatDate>
                    </div>
                </div>
            </c:forEach>
<%--            <div class="news-detail-one">--%>
<%--                <div class="floatLeft"><img src="../img/9_8hh4.jpg" height="15" width="15"/></img>日本较大抹茶餐饮七叶和茶登陆上海</div>--%>
<%--                <div class="floatRight">2020-2-13</div>--%>
<%--            </div>--%>
<%--            <div class="news-detail-one">--%>
<%--                <div class="floatLeft"><img src="../img/9_8hh4.jpg" height="15" width="15"/></img>日本较大抹茶餐饮七叶和茶登陆上海</div>--%>
<%--                <div class="floatRight">2020-2-13</div>--%>
<%--            </div>--%>
<%--            <div class="news-detail-one">--%>
<%--                <div class="floatLeft"><img src="../img/9_8hh4.jpg" height="15" width="15"/></img>日本较大抹茶餐饮七叶和茶登陆上海</div>--%>
<%--                <div class="floatRight">2020-2-13</div>--%>
<%--            </div>--%>

        </div>
        <jsp:include page="page.jsp"></jsp:include>

    </div>
</div>

<jsp:include page="foot.jsp"></jsp:include>
</body>
</html>
